#ifndef SKYID_SPRITE_SCROLL_H 
#define SKYID_SPRITE_SCROLL_H

#include "common.h"
#include "object.h"
#include "texture.h"
#include "sprite.h"

namespace SkyID 
{

//- SpriteScroll --------------------------------------------------------------

class SpriteScroll : public Sprite
{
public:
	SpriteScroll(const Texture *texture, float speed);
	virtual ~SpriteScroll();

	void update(float dt);

	void setSpeed(float speed) { mSpeed = speed; }
	float getSpeed() const { return mSpeed; }

protected:
	void scrollTexture(float delta);

protected:
	float mSpeed, mScroll;
};

} // namespace SkyID

#endif // SKYID_SPRITE_SCROLL_H
